package com.example.demo.设计模式.策略模式;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @projectName:demo
 * @see:设计模式.策略模式
 * @author:袁成龙
 * @createTime:2020/10/13 10:17
 * @version:1.0
 */
@Component
public class TestCelue1 implements CelueInterface, InitializingBean {

    @Override
    public void getstatus(int status) {
        System.out.println("111111====>"+status);
        System.out.println("======执行1");
    }

    //初始化的时候回会运行
    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("========??????");
        System.out.println(this);
        GongCHang.rege(1,this);
    }
}